package com.alex.starter.service;

import org.springframework.beans.factory.annotation.Lookup;
import org.springframework.stereotype.Service;

/**
 * 单例的
 */
@Service
public abstract class UserService {

    @Lookup
    public abstract ToolService getToolService();

    public void print() {
        System.out.println(getToolService());
    }
}
